﻿using System;
using System.Collections.Generic;
using System.Linq;

using SharedGenomics.Core;

namespace SharedGenomics.Domain.Builders
{
    public class PCMHJobBuilder : JobBuilder
    {
        internal PCMHJobBuilder()
            : base(JobType.PCMH)
        {
        }

        public override JobInfo Build()
        {
            JobInfo info = base.Build();

            this.StratificationVariable.ThrowIfNull<BuilderStateException>(this.GetUnsetVariableExceptionMessage("Stratification variable"));
            info.StratificationVariable = this.StratificationVariable;

            return info;
        }
    }
}
